<?php

namespace app\index\controller;

class Article extends Base
{
    public function info()
    {
        $articleInfo = model('Article')->find(input('id'));
        $viewData = [
            'articleInfo' => $articleInfo
        ];
        $this->assign($viewData);
        return view();
    }

    public function comment()
    {
        $data = [
            'articleid' => input('articleid'),
            'userid' => input('userid'),
            'content' => input('content')
        ];
        return $data;
    }
}
